*ERROR* evergreen startup failed on resume
https://bugs.freedesktop.org/show_bug.cgi?id=86267
Bug ID: 86267
Summary: [drm:evergreen_resume] *ERROR* evergreen startup
failed on resume
Product: DRI
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: DRM/Radeon
Assignee: [email protected]
Reporter: [email protected]
Created attachment 109443
--> https://bugs.freedesktop.org/attachment.cgi?id=109443&action=edit
corrupt display
After resuming from suspend on kernel 3.18-rc4 the graphics card locks
:
[55325.256071] [drm] enabling PCIE gen 2 link speeds, disable with radeon.pcie_gen2=0 [55325.261268] [drm] PCIE GART of 1024M enabled (table at 0x000000000025E000). [55325.261400] radeon 0000:03:00.0: WB enabled [55325.261402] radeon 0000:03:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xffff8800d7caac00 [55325.261404] radeon 0000:03:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xffff8800d7caac0c [55325.262271] radeon 0000:03:00.0: fence driver on ring 5 use gpu addr 0x000000000005c418 and cpu addr 0xffffc9000581c418 [55325.437301] [drm:r600_ring_test] *ERROR* radeon: ring 0 test failed (scratch(0x8504)=0xCAFEDEAD) [55325.437302] [drm:evergreen_resume] *ERROR* evergreen startup failed on
resume
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86267
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #109443|text/plain |image/jpeg
mime type| |Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86267
--- Comment #1 from Michel Dänzer <[email protected]> ---
Is this a regression, i.e. did it work with older kernels? If so, can you bisect?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86267
jbart <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WORKSFORME--- Comment #2 from jbart <[email protected]> ---
Hi. I'm unable to reproduce this issue again on a more recent kernel build (3.18.0-0.rc4.git0.2). I'll just mark it worksforme.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86267
jbart <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |------ Comment #3 from jbart <[email protected]> ---
I rescind my previous comment, the same issue has happened again. The bug is spurious, I can't reliably reproduce it yet.
As for bisection I can definitely give it a shot, but it's pointless until I can reproduce the issue at will...
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86267
--- Comment #4 from Michel Dänzer <[email protected]> --- (In reply to jbart from comment #3)
Quoted 2 lines
As for bisection I can definitely give it a shot, but it's pointless until I can reproduce the issue at will...
Not really, if you can get a feeling for how many times you need to test before you can be confident that the problem is not present.
Anyway, were you using older kernels before where the problem never occurred? What was the newest kernel where that was the case?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86267
--- Comment #5 from jbart <[email protected]> ---
I've seen a similar issue at least in the last, i.e. 3.17-rc cycle. Because it seemed to stop occuring in later rcs and stable releases I didn't investigate further. Because I don't recall such issues before, yes, I would say that this behaviour is a regression.
I've also experienced this issue with the latest rc on rawhide, 3.18.0-0.rc5.git0.2.fc22.x86_64.
After the GPU fails to resume I need to kill X. A new session says it is being rendered by llvmpipe, a state which can only be gotten out of by a full reboot.
Since the issue is sporadic (it happens about 2 or 3 times a week) I haven't started bisecting since "getting a good feeling" would really take too long. I haven't noticed that any open apps trigger the bug.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86267
Ismael <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Hardware|Other |x86-64 (AMD64)
OS|All |Linux (All)
Severity|normal |major--- Comment #6 from Ismael <[email protected]> ---
I get the error every time I suspend the machine. And 3D acceleration is disabled until I reboot.
I am using a HD5770 running 3.17.4-1-ck. Both Mesa and X are in the last stable version (I use Arch).
Nov 30 14:49:32 boreal kernel: [drm] PCIE GART of 1024M enabled (table at 0x000000000025D000). Nov 30 14:49:32 boreal kernel: radeon 0000:01:00.0: WB enabled Nov 30 14:49:32 boreal kernel: radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr Nov 30 14:49:32 boreal kernel: radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr Nov 30 14:49:32 boreal kernel: radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x000000000005c418 and cpu addr Nov 30 14:49:32 boreal kernel: [drm:r600_ring_test] *ERROR* radeon: ring 0 test failed (scratch(0x8504)=0xCAFEDEAD) Nov 30 14:49:32 boreal kernel: [drm:evergreen_resume] *ERROR* evergreen startup
failed on resume
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[email protected]
Reviewed-by Christian Könighttps://bugs.freedesktop.org/show_bug.cgi?id=86267
--- Comment #7 from [email protected] ---
Same here with a Radeon HD 5670 512MB GDDR5 using Arch Linux. It also happens without starting X.
This error only shows up when the card successfully resumes not when it fails:
[drm:rv770_stop_dpm] *ERROR* Could not force DPM to low.
Disabling DPM seems to prevent the startup failures.
Another observation. According to /proc/interrupts the card generates thousands of interrupts per seconds after a failed resume, which might explain why the system feels extremely sluggish afterwards.
Bisecting brought me to this commit. It's from early in the 3.17 cycle. I thought this was happening with 3.16 already, but maybe I remember wrong.
commit a3eb06dbca08e3fdad7039021ae03b46b215f22a
Author: Michel Dänzer <[email protected]> Date: Wed Jul 9 20:15:42 2014 +0200
drm/radeon: Remove radeon_gart_restore()
Doesn't seem necessary, the GART table memory should be persistent.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86267
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #8 from [email protected] ---
Created attachment 110335
--> https://bugs.freedesktop.org/attachment.cgi?id=110335&action=edit
dmesg after failed resume
Dmesg after a few suspend/resumes. Card failed to start up after the last one.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86267
--- Comment #9 from Michel Dänzer <[email protected]> --- Created attachment 110348
--> https://bugs.freedesktop.org/attachment.cgi?id=110348&action=edit
Add mb() call to radeon_gart_table_vram_pin
Does this patch help?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86267
--- Comment #10 from [email protected] --- No, doesn't make a difference. Tested with 3.17.4.
The "interrupt storm" I mentioned didn't happen this time. I checked with a patched and unpatched kernel. Either it was just one time thing or only happened with older kernels.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86267
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #110348|0 |1
is obsolete| |
--- Comment #11 from Michel Dänzer <[email protected]> --- Created attachment 110555
--> https://bugs.freedesktop.org/attachment.cgi?id=110555&action=edit
Add mb() andradeon_gart_tlb_flush() calls to radeon_gart_table_vram_pin
How about this patch?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86267
--- Comment #12 from [email protected] ---
Doesn't help. Tested with 3.17.4 and 3.18.0.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86267
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #110555|0 |1
is obsolete| |
--- Comment #13 from Michel Dänzer <[email protected]> --- Created attachment 111362
--> https://bugs.freedesktop.org/attachment.cgi?id=111362&action=edit
Keep GART table mapped across suspend/resume
Does this patch help?
Note that it's just an incomplete proof of concept, but it should at least help narrow down the problem.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86267
--- Comment #14 from [email protected] ---
Created attachment 111395
--> https://bugs.freedesktop.org/attachment.cgi?id=111395&action=edit
dmesg with radeon-suspend-gart-table.diff
On 3.18.1 the patch applied with some offsets and didn't help. I'm getting those NULL pointer warnings now though.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86267
--- Comment #15 from Michel Dänzer <[email protected]> --- Created attachment 112527
--> https://bugs.freedesktop.org/attachment.cgi?id=112527&action=edit
Split off separate radeon_gart_get_page_entry ASIC hook
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86267
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #111362|0 |1
is obsolete| |
--- Comment #16 from Michel Dänzer <[email protected]> --- Created attachment 112528
--> https://bugs.freedesktop.org/attachment.cgi?id=112528&action=edit
Reinstate radeon_gart_restore for when the GART table is in VRAM
Do these two patches help?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86267
--- Comment #17 from Ismael <[email protected]> --- (In reply to Michel Dänzer from comment #16)
Quoted 4 lines
Created attachment 112528 [details] [review]
Reinstateradeon_gart_restorefor when the GART table is in VRAMDo these two patches help?
Yes it helps. Suspend and resume work perfectly now.
Xan 22 21:20:20 boreal kernel: [drm] enabling PCIE gen 2 link speeds, disable with radeon.pcie_gen2=0
Xan 22 21:20:20 boreal kernel: [drm] PCIE GART of 1024M enabled (table at 0x000000000025E000).
Xan 22 21:20:20 boreal kernel: radeon 0000:01:00.0: WB enabled Xan 22 21:20:20 boreal kernel: radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xffff88041693cc00
Xan 22 21:20:20 boreal kernel: radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xffff88041693cc0c
Xan 22 21:20:20 boreal kernel: radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x000000000005c418 and cpu addr 0xffffc9000471c418
Xan 22 21:20:20 boreal kernel: [drm] ring test on 0 succeeded in 1 usecs Xan 22 21:20:20 boreal kernel: [drm] ring test on 3 succeeded in 2 usecs Xan 22 21:20:20 boreal kernel: usb 6-1.6.2: reset high-speed USB device number 5 using ehci-pci
Xan 22 21:20:20 boreal kernel: [drm] ring test on 5 succeeded in 1 usecs Xan 22 21:20:20 boreal kernel: [drm] UVD initialized successfully. Xan 22 21:20:20 boreal kernel: [drm] ib test on ring 0 succeeded in 0 usecs Xan 22 21:20:20 boreal kernel: [drm] ib test on ring 3 succeeded in 0 usecs
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86267
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |FIXED--- Comment #18 from Michel Dänzer <[email protected]> --- The fix is queued up in Alex Deucher's -fixes tree.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel